﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"
>
    <xsl:output method="xml" indent="yes"/>

    <xsl:template match="products">
		<products>
			<xsl:apply-templates select="product"/>
		</products>
    </xsl:template>
	<xsl:template match="product">
		<product>
			<xsl:attribute name="pid">
				<xsl:value-of select="pid"/>
			</xsl:attribute>
			<xsl:attribute name="pname">
				<xsl:value-of select="pname"/>
			</xsl:attribute>
			<xsl:attribute name="ptime">
				<xsl:value-of select="ptime"/>
			</xsl:attribute>
			<xsl:attribute name="pimage">
				<xsl:value-of select="pimage"/>
			</xsl:attribute>
			<xsl:attribute name="pprice">
				<xsl:value-of select="pprice"/>
			</xsl:attribute>
			<xsl:attribute name="pinfo">
				<xsl:value-of select="pinfo"/>
			</xsl:attribute>
		</product>
	</xsl:template>
</xsl:stylesheet>
